package com.wmyg.antifake.gs1.ns2.converters;

import com.wmyg.antifake.gs1.ns2.basic.Link;
import org.dom4j.Element;

/**
 * @program: antifake
 * @description: 链接转换器
 * @author: wong
 * @create: 19-4-23
 */
public class LinkConverter {

    protected static Link converter(Element element) {
        Link link = new Link();
        link.setUrl(((Element)(element.elements().get(0))).getText());
        return link;
    }

}
